home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Programming / LEDA / INSTALL.dos < prev    next >
Text File  |  1994-08-05  |  4KB  |  124 lines

  1. *******************************************************************************
  2. *                                                                             *
  3. *                        LEDA  for MS-DOS                                     *
  4. *                                                                             *
  5. *                  (ZTC++/BC++/DJGPP INSTALLATION)                            *
  6. *                                                                             *
  7. *******************************************************************************
  8.  
  9.   In this file I use <LEDA> to denote the path name of the LEDA main 
  10.   directory. It should contain the following files and subdirectories: 
  11.   
  12.   changes                   most recent changes
  13.   install.dos               this file
  14.   incl\                     LEDA include directory
  15.   src\                      LEDA source files
  16.   prog\                     example programs
  17.   util\make_lib.bat         library make batch file
  18.   util\make_pro.bat         program make batch file
  19.   
  20.  
  21.  
  22.  
  23.   LEDA has been developed on UNIX workstations with AT&T and GNU compilers. 
  24.   Not much work has been invested in testing the library on PC's under DOS.
  25.   The source code can be compiled with Borland C++, Zortech C++, and DJGPP. 
  26.   You have to use memory model huge (-mh) for Borland and extended (-mx) 
  27.   for Zortech. See the "<LEDA>\src\make.scr" and "<LEDA>\prog\make.pro" 
  28.   make scripts for additional informations. 
  29.  
  30.  
  31.   NOTE: The template version can be used with BCC 3.1, ZTC 3.1 and DJGPP 1.1
  32.  
  33.  
  34.  
  35. 1. Editing Makefiles
  36. --------------------
  37.  
  38. a) You have to edit "<LEDA>\src\make.src" and "<LEDA>\prog\make.pro";
  39.    uncomment the appropriate paragraphs corresponding to your compiler.
  40.  
  41. b) If you use Borland's make, you also have to change all files
  42.    <LEDA>\src\*\makefile and <LEDA>\prog\*\makefile because of
  43.    its non-standard include syntax:
  44.  
  45.    replace all lines
  46.  
  47.           include  blabla
  48.    by 
  49.           !include "blabla"
  50.  
  51.  
  52.  
  53. 2. HEADER FILES     (cf. section 1.8 of the user manual)
  54. ---------------
  55.   
  56.    All LEDA header files are in the directory  "<LEDA>\incl\leda".
  57.    You first have to  create a directory with name "leda" in the 
  58.    C++ default include directory (e.g. \bcc\include\leda, 
  59.    \zordos)\include\leda or \djgpp\include\leda) and copy all 
  60.    files (*.h) and subdirectories ("impl") from "<LEDA>\incl\leda" to this 
  61.    directory.
  62.  
  63.  
  64.  
  65. 3. LIBRARIES      (cf. section 1.9 of the user manual)
  66. ------------
  67.  
  68.    You have to make the following libraries:
  69.  
  70.    libl.lib     (main   library libl.a   )
  71.    libg.lib     (graph  library libg.a   )
  72.    libp.lib     (plane  library libp.a   )
  73.    libwvga.lib  (window library libwx.a  )
  74.  
  75.  
  76.    To do this, go to <LEDA>\util and call the batch file "make_lib".  
  77.    Then move the libraries to the C++ default library directory (e.g. 
  78.    \borlandc\lib, \zortech\lib (\zordos\libdos) or \djgpp\lib)
  79.  
  80.  
  81.  
  82.    Use the libraries as follows to compile and link programs
  83.    (see section 1.9 of the user manual):
  84.  
  85.    For programs using basic data types (<LEDA>\prog\basic):
  86.  
  87.    ztc -cpp -mx   prog.c libl.lib 
  88.  
  89.    bcc -P -Qx -mh prog.c libl.lib 
  90.  
  91.  
  92.  
  93.    For programs using graph data types (<LEDA>\prog\graph):
  94.  
  95.    ztc -cpp -mx   prog.c libg.lib libl.lib 
  96.  
  97.    bcc -P -Qx -mh prog.c libg.lib libl.lib 
  98.  
  99.  
  100.  
  101.    For programs using geometric data types (<LEDA>\prog\plane):
  102.  
  103.    ztc -cpp   -mx prog.c libp.lib libg.lib libl.lib 
  104.  
  105.    bcc -P -Qx -mh prog.c libp.lib libg.lib libl.lib 
  106.  
  107.  
  108.  
  109.    For programs using geometric data types & graphics (<LEDA>\prog\graphics):
  110.  
  111.    ztc -cpp   -mx prog.c libp.lib libg.lib libl.lib libwvga.lib
  112.  
  113.    bcc -P -Qx -mh prog.c libp.lib libg.lib libl.lib libwvga.lib
  114.  
  115.  
  116.  
  117. 3. EXAMPLE PROGRAMS
  118. -------------------
  119.  
  120.    Example programs can be found in <LEDA>\prog\...
  121.    you can use the <LEDA>\util\make_prog.bat batch file to compile them.
  122.  
  123.  
  124.